package com.gengzi.item.bo;

import com.gengzi.item.pojo.Sku;
import com.gengzi.item.pojo.Spu;
import com.gengzi.item.pojo.SpuDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author 董诗攀
 * 继承SPU，并且拓展cname和bname属性
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="spu,描述的是一个抽象性的商品")
public class SpuBo extends Spu {
    @ApiModelProperty(value="商品分类名称")
    String cname;
    @ApiModelProperty(value="品牌名称")
    String bname;
    @ApiModelProperty(value="商品详情")
    SpuDetail spuDetail;
    @ApiModelProperty(value="sku列表")
    List<Sku> skus;

}